<fieldset style="height: 67px; margin-top: -10px">
    <legend>条件搜索</legend>

    <form class="layui-form layui-form-pane form-search" action="{:url('')}" onsubmit="return false" method="get"
          autocomplete="off" style="float: left; ">
        <div class="layui-form-item layui-inline" style="z-index: 10">
            <label class="layui-form-label">BattleId</label>
            <label class="layui-input-inline">
                <input name="battle_id" value="{:input('battle_id','')}" placeholder="请输入BattleId"
                       class="layui-input">
            </label>
        </div>
        <div class="layui-form-item layui-inline" style="z-index: 10">
            <label class="layui-form-label">用户ID</label>
            <label class="layui-input-inline">
                <input name="user_id" value="{:input('user_id','')}" placeholder="请输入用户ID" class="layui-input">
            </label>
        </div>
        <div class="layui-form-item layui-inline" style="z-index: 10">
            <label class="layui-form-label">是否有真人</label>
            <label class="layui-input-inline">
                <select class="layui-select" name="have_true_user">
                    {foreach [''=>'- 全部 -', '1'=>'是','2'=>'否']
                    as $k=>$v}
                    {if input('have_true_user') eq $k.''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </label>
        </div>
        <div class="layui-form-item layui-inline" style="z-index: 10">
            <label class="layui-form-label">状态</label>
            <label class="layui-input-inline">
                <select class="layui-select" name="status">
                    {foreach [''=>'- 全部 -', '1'=>'未开始','2'=>'已完成','3'=>'异常']
                    as $k=>$v}
                    {if input('status') eq $k.''}
                    <option selected value="{$k}">{$v}</option>
                    {else}
                    <option value="{$k}">{$v}</option>
                    {/if}
                    {/foreach}
                </select>
            </label>
        </div>
        <div class="layui-form-item layui-inline" style="z-index: 10">
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
        </div>
    </form>

    <script>form.render()</script>
</fieldset>

